{extend name='user/public/layout' /}
{block name='content'}
<div class="overflow_h">
    <div class="screen">
        <div class="screen_box01 overflow_h">
            <ul>
                <li><a href="{:url('user.ask/index')}" class="on">提问列表</a></li>
                <li><a href="{:url('user.ask/myanswer')}">回答列表</a></li>
                <li><a href="{:url('user.ask/help')}">求助列表</a></li>
                <li><a href="{:url('user.ask/add')}">我要提问</a></li>
            </ul>
        </div>
    </div>
    <div class="user-nav">
        <div class="Mtitle">
            <div class="rightWord"><a href="{:url('user.ask/index')}">我的问题</a> &gt;&gt; 查看详细</div>
        </div>
        <form id="info_form" action="{:url('user.ask/editDo')}" method="post" enctype="multipart/form-data">
            <input type="hidden" name="ask_id" value="{$info.id}">
            <div class="con_div">
                <ul class="formList width2 list_ul list_li">
                    <li><label>问题名称：</label>{$info.title}</li>
                    <li><label>问题描述：</label>{$info.content}</li>
                    <li><label>解决状态：</label>
                        <span class="blue">{if condition="$info['option'] eq 1"}已解决{else /}
                            <input type="radio" name="option" value="1">已解决
                            <input type="radio" name="option" value="0" checked>待解决
                        {/if}
                        </span></li>
                    <input type="hidden" name="id" value="{$info.id}">
                    {if condition='$info["option"] eq 0'}
                    <li>
                        <label></label>
                        <input type="submit" value="提 交" class="btnStyle">
                    </li>
                    {/if}
                    <li>
                        <label>&nbsp;</label>
                        <table width="100%">
                            <tr>
                                <th width="70%">回答内容</th>
                                <th width="20%">回答时间</th>
                                <th width="10%">状态</th>
                            </tr>
                            {volist name='answer' id='vo'}
                            <tr>
                                <td>{$vo.content}</td>
                                <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                                <td>{$vo.status == 1?'正常':'待审'}</td>
                            </tr>
                            {/volist}
                        </table>
                    </li>

                </ul>
            </div>
        </form>

    </div>
</div>

{/block}